// serialport.h

#ifndef SERIALPORT_H
#define SERIALPORT_H

#include <visibility.h>

class __EXPORT SerialPort
{
public:
	virtual ~SerialPort() {}
	
	virtual bool lock() = 0;
	virtual void unlock() = 0;
	virtual int read(void *buf, int size) = 0;
	virtual void write(const void *buf, int size) = 0;
	virtual void clean() = 0;
};

#endif
